﻿var app = angular.module('routingDemoApp', [
    'ngRoute',
    'fxrContrls',
    'CxsDetailContrls',
    'CxsStatsContrls',
    'cxsContrls',
    'TcyDetailContrls',
    'TcyStatsContrls'
]);

app.config(['$routeProvider', function ($routeProvider) {
    $routeProvider
        .when('/', { templateUrl: 'HZHB/FxrList.html', controller: 'FxrList' })
        .when('/fxr', { templateUrl: 'HZHB/FxrList.html', controller: 'FxrList' })
        .when('/cxs1', { templateUrl: 'HZHB/CxsDetail.html', controller: 'CxsDetailCtrl' })
        .when('/cxs2/:CxsName', { templateUrl: 'HZHB/CxsStats.html', controller: 'CxsStatsCtrl' })
        .when('/cxs', { templateUrl: 'HZHB/CxsList.html', controller: 'CxsList' })
        .when('/tcy1/:CxsName', { templateUrl: 'HZHB/TcyDetail.html', controller: 'TcyDetailCtrl' })
        .when('/tcy2/:CxsName', { templateUrl: 'HZHB/TcyStats.html', controller: 'TcyStatsCtrl' })
        .otherwise({ redirectTo: '/' });
}]);